package fun.ty13.feignClient;

import fun.ty13.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 桃缘十三
 * @date 2022/11/26 11:02
 */
//@FeignClient("user-server")
//@FeignClient(value = "user-server",fallback =UserFeignFallBack.class )
@FeignClient(value = "user-server",fallbackFactory =UserFeignFallBackFactory.class )
public interface UserFeignClient {

    @GetMapping("/user/{id}")
    public User get(@PathVariable Long id);
}
